package com.woniu.sharepark.leasesystem.tenant.service;

import com.woniu.sharepark.common.JsonResult;
import com.woniu.sharepark.leasesystem.tenant.pojo.Complaint;
import com.woniu.sharepark.leasesystem.tenant.vo.ComplaintVO;

import java.util.List;

/**
 *@ClassName ComplaintService
 *@Description 投诉模块的接口
 *@Author Administrator
 *@Date 2019/6/5 19:23
 *@Version 1.0
 **/
public interface ComplaintService {
    /**
    *根据被投诉方id和处理状态分页、动态查询投诉信息
    * @title allComplaints
    * @param currentPage
     * @param pageSize
     * @param complaintVO
    * @return java.util.List
    * @author litong
    * @date 2019/6/6 10:23
    **/
    List allComplaints(Integer currentPage, Integer pageSize, ComplaintVO complaintVO);

    /**
    * 添加投诉
    * @title addComplaint
    * @param complaint
    * @return com.woniu.sharepark.common.JsonResult
    * @author litong
    * @date 2019/6/10 9:31
    **/
    JsonResult addComplaint(Complaint complaint,Integer oId);

    /**
    * 根据主键投诉id处理投诉
    * @title disposeComplaint
    * @param coId
    * @return com.woniu.sharepark.common.JsonResult
    * @author litong
    * @date 2019/6/10 9:46 
    **/
    JsonResult disposeComplaint(Integer coId);

    /**
    *根据被投诉方id及投诉状态动态查询该用户被投诉的次数
    * @title countOfComplaints
    * @param complaintVO
    * @return java.lang.Integer
    * @author litong
    * @date 2019/6/10 9:59
    **/
    Integer countOfComplaints(ComplaintVO complaintVO);

    /**
    *投诉租客
    * @title addComplaintToTenant
    * @param complaint
     * @param oId
    * @return com.woniu.sharepark.common.JsonResult
    * @author litong
    * @date 2019/6/21 10:32
    **/
    JsonResult addComplaintToTenant(Complaint complaint, Integer oId);
}
